package cn.zhiran.org.service.impl;

import cn.zhiran.basic.service.impl.BaseServiceImpl;
import cn.zhiran.basic.util.PageList;
import cn.zhiran.org.domain.Employee;
import cn.zhiran.org.mapper.EmployeeMapper;
import cn.zhiran.org.query.EmployeeQuery;
import cn.zhiran.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service

public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;



    @Transactional
    @Override
    public void update(Employee employee) {
        employeeMapper.update(employee);
    }

    @Transactional
    @Override
    public void insert(Employee employee) {

        employeeMapper.insert(employee);
    }




}
